﻿Public Class CheckClass
    Dim cn As New DatabaseConnect
    Dim dt As DataTable
    Dim xuli As String
    'isexist
    Function IsExist(ByVal _bang As String, ByVal _dieukien As String) As Boolean
        xuli = "select * from " + _bang + " " + _dieukien + ""
        dt = cn.GetData(xuli)
        If dt.Rows.Count > 0 Then
            Return True
        Else
            Return False
        End If
    End Function
End Class
